<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script src="points.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">
	var template = {
		id:null,
		label:null,
		
	}
	var resultArray = [];
	for (var i = 0; i < points.length; i++) {
		let point = points[i]
		resultArray.push({
			id:(i+1),
			label:point.label,
			code:point.code,
			coord:[point.longitude,point.latitude],
			coordZ:6,
			rotation:[0,0,0],
			type:"legendName2"
		})
	}
	console.log(JSON.stringify(resultArray))
</script>